package com.shike.core.utils.redis;

public abstract class BasePrefix implements KeyPrefix {
    private long expireSeconds;
    private String prefix;

    public BasePrefix(long expireSeconds, String prefix) {
        this.expireSeconds = expireSeconds;
        this.prefix = prefix+":";
    }

    @Override
    public long expireSeconds() {
        return this.expireSeconds;
    }

    @Override
    public String getPrefix() {
        return String.format("zq:%s:",this.prefix);
    }

}
